package kr.hkit.powerjava.chapter6.work;

import java.util.Scanner;

public class IfText {
	public static void main(String[] args) {

		Scanner input = new Scanner(System.in);
		System.out.println("사이즈를 적으시오.");
		solveFirst(input.nextInt());
		solveSecond(3);
		System.out.println("사이즈를 적으시오.");
		solveThird(input.nextInt());
	}

	private static void solveThird(int size) {
		System.out.format("cup size : %d = ", size);
		if (size < 100)
			System.out.println("small");
		else if (size < 200)
			System.out.println("medium");
		else
			System.out.println("large");

	}

	private static void solveSecond(int k) {
		if (k == 0)
			System.out.println("A");
		else if (k > 3)
			System.out.println("B");
		else
			System.out.println("C");

	}

	private static void solveFirst(int n) {

		if (n >= 100)
			System.out.println("large");
		else
			System.out.println("small");
	}

}
